package com.zyg.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zyg.mapper.UserMapper;
import com.zyg.pojo.User;

@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	
	public boolean login(User user){
		User user2 = userMapper.login(user);
		if (null != user2) {
			return true;
		}else {
			return false;
		}
	}
}
